import 'package:flutter/material.dart';

import 'horizontal_item.dart';

/// FileName row_item
///
/// @Author lax
/// @Date 2025/4/1
///
/// @Description

class RowItem extends HorizontalItem {
  RowItem({
    super.key,
    String? title,
    String? value,
    super.onTap,
    super.required = false,
    super.padding,
    super.titleStyle,
    super.valueStyle,
    super.unableTitleStyle,
    super.unableValueStyle,
    super.titleWidth,
    super.valueWidth,
    super.flex,
    super.leftWidget,
    super.rightWidget,
    super.titleWidget,
    super.valueWidget,
    super.separator = const SizedBox(width: 8),
    super.mainAxisAlignment = MainAxisAlignment.start,
    super.crossAxisAlignment = CrossAxisAlignment.center,
    String? joinString,
    Widget? joinWidget,
  }) : super(
          enable: false,
          title: joinString == null ? title : '$title$joinString$value',
          value: joinString == null ? value : null,
        );
}
